package com.generic.getGenericSuperclass;

import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;

public abstract class A<T> {
	Type type;

	public A() {
		Type genType = this.getClass().getGenericSuperclass();
		Type[] params = ((ParameterizedType) genType).getActualTypeArguments();
		type = params[0];
	}

	public Type getType() {
		return type;
	}

}